package o;

import android.app.Activity;
import android.app.Application.ActivityLifecycleCallbacks;
import android.content.Intent;
import android.os.Bundle;
import com.huawei.appmarket.framework.activity.DownloadPauseDialog;

public class dgg implements ActivityLifecycleCallbacks {
    public void onActivityCreated(Activity activity, Bundle bundle) {
    }

    public void onActivityStarted(Activity activity) {
    }

    public void onActivityResumed(Activity activity) {
        if (!dpi.ˊ(activity)) {
            DownloadPauseDialog.register(activity);
            dvt.ˏ().ˏ(true);
            if (dvr.ˏ(activity, true)) {
                Intent intent = new Intent();
                intent.setAction(DownloadPauseDialog.DIALOG_POPUP_DOWNBROADCAST);
                ll.ˏ(ContentManager.getInstant().getContext()).ˋ(intent);
            }
        }
    }

    public void onActivityPaused(Activity activity) {
        if (!dpi.ˊ(activity)) {
            try {
                DownloadPauseDialog.unRegister(activity);
            } catch (Exception e) {
                Logger.ˋ("BaseActivity", "unRegister exception:" + e.toString());
            }
        }
    }

    public void onActivityStopped(Activity activity) {
    }

    public void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
    }

    public void onActivityDestroyed(Activity activity) {
    }
}
